package com.zjy.financialsystemjavafx.model.entity;

import java.time.LocalDate;

/**
 * 交易实体类
 */
public class Transaction {

    private int transactionId;
    private String transactionType;
    private double amount;
    private LocalDate transactionDate;
    private String accountName;
    private String categoryName;
    private String description;

    public Transaction() {}

    public Transaction(int transactionId, String transactionType, double amount, LocalDate transactionDate,
                       String accountName, String categoryName, String description) {
        this.transactionId = transactionId;
        this.transactionType = transactionType;
        this.amount = amount;
        this.transactionDate = transactionDate;
        this.accountName = accountName;
        this.categoryName = categoryName;
        this.description = description;
    }

    public int getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(int transactionId) {
        this.transactionId = transactionId;
    }

    public String getTransactionType() {
        return transactionType;
    }

    public void setTransactionType(String transactionType) {
        this.transactionType = transactionType;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public LocalDate getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(LocalDate transactionDate) {
        this.transactionDate = transactionDate;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
} 